﻿using AbstractFactoryPattern.Food;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AbstractFactoryPattern
{
    class Program
    {
        static void Main(string[] args)
        {
            AbstractFactory factory1 = new ConcreteFactory1();
            FactoryEnvironment e1 = new FactoryEnvironment(factory1);
            e1.Run();

            AbstractFactory factory2 = new ConcreteFactory2();
            FactoryEnvironment e2 = new FactoryEnvironment(factory2);
            e2.Run();
            Console.Read();

            Customer customer = new Customer();
            customer.Cookie();
        }
    }
}
